#include "img_struct.h"

statistics_config_t ov9715_tile_config = {
	1,
	1,

	24,
	16,
	128,
	48,
	160,
	250,
	160,
	250,
	0,
	16383,

	12,
	8,
	0,
	8,
	340,
	512,

	8,
	5,
	256,
	10,
	448,
	816,
	448,
	816,

	0,
	16383,
};

 line_t ov9715_50hz_lines[] = {
		{
		{{SHUTTER_1BY8000, ISO_100, 0}}, {{SHUTTER_1BY100, ISO_100,0}}
		},

		{
		{{SHUTTER_1BY100, ISO_100, 0}}, {{SHUTTER_1BY100, ISO_300, 0}}
		},

		{
		{{SHUTTER_1BY50, ISO_100, 0}}, {{SHUTTER_1BY50, ISO_800,0}}
		},

		{
		{{SHUTTER_1BY30, ISO_100, 0}}, {{SHUTTER_1BY30, ISO_6400,0}}
		}
};


 line_t ov9715_60hz_lines[] = {
		{
		{{SHUTTER_1BY8000, ISO_100, 0}}, {{SHUTTER_1BY120, ISO_100,0}}
		},

		{
		{{SHUTTER_1BY120, ISO_100, 0}}, {{SHUTTER_1BY120, ISO_300, 0}}
		},

		{
		{{SHUTTER_1BY60, ISO_100, 0}}, {{SHUTTER_1BY60, ISO_800,0}}
		},

		{
		{{SHUTTER_1BY30, ISO_100, 0}}, {{SHUTTER_1BY30, ISO_6400,0}}
		}
};

img_awb_param_t ov9715_awb_param = {
	{
		{1781, 1024, 1513},	//AUTOMATIC
		{1071, 1024, 2320},	//INCANDESCENT
		{1263, 1024, 2197},	//D4000
		{1585, 1024, 1772},	//D5000
		{1781, 1024, 1513},	//SUNNY
		{1934, 1024, 1477},	//CLOUDY
		{1750, 1024, 1400},	//FLASH
		{1250, 1024, 1825},	//FLUORESCENT
		{1750, 1024, 1400},	//FLUORESCENT_H
		{1024, 1024, 1024},	//UNDER WATER
		{1775, 1024, 1200},	//CUSTOM
		{1781, 1024, 1513},	//AUTOMATIC OUTDOOR
	},
	{
		12,
		{{ 820, 1500, 1750, 3000, -1250, 3100, -1150, 4250, 1000, 1050, 1000,  2050, 1 }, // 0	INCANDESCENT
		 {  950, 1830, 1650, 2550, -1250, 3100, -1200, 4300, 1000,   550, 1000,  1200, 2 }, // 1	D4000
		 {1150, 2150, 1200, 2270, -1270, 3100, -1000, 3950, 1000, -200, 1000,    600, 4 }, // 2	D5000
		 {1500, 2300, 1000, 1930,  -900, 2600,  -1000, 3950,  650,    100,  650,     650, 8 }, // 3	SUNNY
		 {1650, 2350, 1100, 1800,  -650, 2200,  -1000, 3950,  550,  -100,  550,     750, 4 }, // 4	CLOUDY
		 {2350, 2800, 1600, 2050, -1000, 3950, -1000, 4700, 550,     150,  550,     720, 0 },	// 5	PROJECTOR
		 {   0,    0,    0,    0,     0,    0,     0,    0,    0,     0,    0,     0, 0 },	// 6	D10000
		 {   0,    0,    0,    0,     0,    0,     0,    0,    0,     0,    0,     0, 0 },	// 7    FLASH
		 {   0,    0,    0,    0,     0,    0,     0,    0,    0,     0,    0,     0, 0 }, // 8    FLUORESCENT
		 {   0,    0,    0,    0,     0,    0,     0,    0,    0,     0,    0,     0, 0 }, // 9    FLUORESCENT_2
		 {   0,    0,    0,    0,     0,    0,     0,    0,    0,     0,    0,     0, 0 },	// 10  FLUORESCENT_3
		 {   0,    0,    0,    0,     0,    0,     0,    0,    0,     0,    0,     0, 0 }}, //11 CUSTOM
	},
	{	{ 0 ,6},	//LUT num. AUTOMATIC  INDOOR
		{ 0, 1},	//LUT num. INCANDESCENT
		{ 1, 1},	//LUT num. D4000
		{ 2, 1},	//LUT num. D5000
		{ 2, 5},	//LUT num. SUNNY
		{ 4, 3},	//LUT num. CLOUDY
		{ 7, 1},	//LUT num. FLASH
		{ 8, 1},	//LUT num. FLUORESCENT
		{ 9, 1},	//LUT num. FLUORESCENT_H
		{11, 1},	//LUT num. UNDER WATER
		{11, 1},	//LUT num. CUSTOM
		{ 0, 7},	//LUT num. AUTOMATIC  OUTDOOR
	 }
};
u32 ov9715_ae_agc_dgain[AGC_DGAIN_TABLE_LENGTH]={
		961,
		901,906,912,917,922,926,931,936,874,879,883,888,893,897,903,907,
		870,875,880,884,889,894,898,904,853,857,862,866,872,875,881,885,
		857,862,867,872,877,881,885,890,850,854,859,863,868,873,877,883,
		846,849,854,859,863,868,873,878,851,856,861,865,870,875,880,884,
		848,852,857,861,865,871,875,880,848,852,857,861,866,871,876,881,
		850,855,859,864,869,874,878,883,863,868,872,876,880,886,891,895,
		864,869,874,878,883,888,892,897,870,874,878,882,887,892,897,902,
		880,885,889,894,899,904,909,914,968,973,978,983,988,994,999,1005,
		953,958,963,969,975,980,985,991,924,929,934,939,945,950,955,960,
		921,927,931,936,941,947,951,956,905,910,914,919,924,930,934,939,
		902,907,911,917,922,926,932,937,897,902,907,912,917,921,926,932,
		893,898,902,907,913,918,923,928,899,904,908,913,918,923,929,934,
		906,911,916,920,926,931,936,941,903,908,912,916,922,927,933,937,
		905,909,914,919,925,930,935,940,910,916,921,926,930,935,941,946,
		919,924,930,935,940,945,950,955,927,932,937,941,947,951,957,961,
		939,945,950,955,961,967,971,977,954,959,965,969,975,980,986,990,
		936,941,946,951,957,962,967,972,910,914,919,924,929,934,939,944,
		904,909,914,918,923,929,934,938,891,896,901,905,911,916,921,914,
		885,890,895,900,905,909,915,919,879,884,889,893,898,903,908,914,
		882,887,892,897,902,906,911,916,891,895,900,905,909,914,920,925,
		889,894,899,903,908,913,918,923,884,889,893,898,903,908,913,917,
		891,897,902,907,912,916,922,926,896,900,905,911,916,920,925,931,
		904,909,913,918,923,928,934,939,911,917,921,927,932,937,941,947,
		924,930,934,939,945,949,955,960,977,982,988,994,999,1005,1010,1016,
		957,963,968,973,978,984,989,994,933,939,944,948,954,959,965,970,
		925,929,935,940,945,950,956,960,912,917,922,927,932,937,942,947,
		905,910,915,920,925,930,935,940,899,903,908,913,918,923,928,934,
		901,905,910,915,920,925,930,935,906,912,917,921,926,932,937,942,
		908,913,918,922,928,933,938,943,901,906,911,916,921,926,930,932,
		912,917,921,926,931,936,941,947,919,925,929,935,941,946,950,956,
		927,931,936,942,947,952,957,963,933,938,943,948,953,958,963,969,
		944,948,954,959,964,969,974,980,975,980,985,991,997,1002,1007,1013,
		955,960,965,971,976,981,986,991,929,934,940,945,950,954,960,965,
		919,924,929,935,940,945,950,955,911,917,921,926,931,936,942,947,
		905,910,916,921,926,930,934,940,899,904,909,914,919,924,929,933,
		900,905,910,915,920,924,929,935,904,909,914,919,924,929,934,939,
		907,912,917,922,927,932,938,942,901,905,910,915,920,925,931,936,
		911,916,921,926,931,936,941,946,916,922,927,931,937,941,947,952,
		923,928,932,937,942,948,952,958,933,937,942,947,952,958,963,968,
		945,949,955,959,965,970,975,980,986,991,996,1002,1007,1012,1018,1024,
		1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
		1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
		1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
		1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
		1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
		1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
		1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
		1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,

	};
u32 ov9715_ae_sht_dgain[SHUTTER_DGAIN_TABLE_LENGTH] ={
	1024,
	1028,1028,1027,1027,1028,1027,1028,1028,1027,1027,1028,1027,1027,1026,1026,1026,
	1027,1026,1026,1025,1025,1025,1025,1025,1025,1025,1024,1024,1025,1025,1025,1025,
	1024,1024,1025,1024,1024,1025,1024,1024,1025,1024,1025,1024,1024,1023,1023,1023,
	1024,1022,1024,1023,1022,1023,1022,1022,1023,1022,1022,1022,1022,1022,1021,1021,
	1021,1021,1021,1021,1021,1021,1020,1020,1020,1020,1019,1020,1020,1020,1020,1020,
	1020,1021,1021,1019,1019,1020,1020,1021,1019,1020,1021,1021,1020,1023,1021,1023,
	1021,1022,1021,1021,1022,1021,1022,1020,1020,1018,1019,1018,1019,1018,1019,1018,
	1019,1019,1020,1019,1019,1020,1019,1021,1020,1019,1019,1019,1019,1018,1020,1020,
	1019,1018,1021,1019,1019,1018,1017,1017,1019,1018,1018,1018,1017,1018,1017,1017,
	1017,1016,1016,1016,1015,1015,1016,1015,1016,1016,1015,1017,1016,1016,1017,1017,
	1017,1018,1015,1015,1016,1016,1017,1018,1015,1017,1018,1017,1016,1016,1017,1018,
	1015,1016,1017,1014,1016,1015,1016,1014,1014,1011,1013,1014,1013,1014,1016,1014,
	1016,1014,1017,1014,1016,1018,1016,1019,1017,1018,1018,1019,1017,1019,1018,1016,
	1018,1017,1020,1017,1019,1019,1016,1019,1018,1020,1018,1017,1020,1022,1016,1019,
	1017,1016,1019,1017,1017,1020,1018,1017,1016,1019,1019,1017,1016,1020,1019,1018,
	1017,1020,1020,1019,1019,1018,1022,1021,1020,1020,1018,1019,1022,1020,1021,1018,
	1017,1016,1015,1014,1014,1018,1017,1017,1016,1018,1016,1016,1016,1016,1015,1016,
	1014,1015,1014,1014,1015,1015,1014,1016,1015,1016,1016,1016,1017,1018,1017,1020,
	1019,1020,1021,1021,1021,1018,1018,1018,1020,1018,1022,1021,1021,1023,1017,1018,
	1020,1019,1021,1023,1022,1018,1019,1018,1022,1021,1023,1019,1018,1022,1023,1024,
	1021,1021,1022,1025,1018,1020,1022,1022,1025,1019,1020,1023,1024,1018,1021,1020,
	1014,1017,1017,1021,1015,1016,1021,1014,1017,1020,1012,1017,1020,1021,1018,1019,
	1022,1019,1018,1024,1019,1019,1016,1019,1020,1017,1019,1022,1018,1019,1016,1018,
	1021,1019,1019,1023,1020,1020,1018,1021,1014,1021,1023,1017,1023,1014,1022,1016,
	1018,1026,1019,1023,1020,1021,1017,1021,1013,1022,1014,1019,1027,1017,1025,1019,
	1023,1021,1023,1018,1026,1017,1025,1019,1023,1021,1024,1019,1028,1020,1017,1022,
	1015,1025,1017,1023,1020,1023,1020,1026,1018,1029,1020,1015,1023,1013,1022,1017,
	1020,1018,1010,1018,1016,1019,1016,1024,1017,1015,1020,1014,1025,1016,1013,1021,
	1012,1025,1017,1011,1023,1013,1025,1020,1011,1023,1016,1009,1023,1014,1025,1021,
	1011,1025,1019,1011,1024,1016,1010,1024,1014,1011,1023,1013,1011,1021,1014,1013,
	1020,1015,1012,1020,1017,1012,1021,1019,1011,1023,1021,1012,1026,1022,1013,1030,
	1023,1016,1014,1022,1018,1015,1024,1022,1016,1027,1024,1016,1009,1026,1015,1012,
	1026,1017,1016,1009,1022,1020,1012,1008,1024,1014,1012,1007,1019,1017,1009,1025,
	1022,1012,1010,1027,1018,1017,1009,1025,1023,1014,1009,1029,1019,1017,1011,1003,
	1025,1017,1012,1010,1024,1021,1017,1007,1031,1023,1018,1015,1006,1028,1025,1015,
	1013,1034,1027,1026,1016,1013,1037,1026,1025,1020,1011,1038,1028,1024,1021,1010,
	1037,1032,1023,1021,1012,1034,1031,1021,1018,1013,1034,1031,1025,1018,1017,1007,
	1033,1030,1021,1018,1012,1036,1034,1024,1021,1017,1007,1039,1032,1024,1024,1013,
	1008,1039,1028,1027,1020,1013,1012,1038,1033,1030,1020,1017,1011,1004,1038,1029,
	1024,1022,1012,1009,1042,1033,1031,1024,1018,1016,1006,1042,1038,1028,1027,1019,
	1012,1011,1042,1039,1035,1025,1023,1016,1009,1008,1042,1039,1035,1024,1022,1015,
	1008,1054,1043,1041,1037,1027,1025,1018,1010,1057,1047,1044,1040,1031,1028,1022,
	1015,1013,1053,1048,1045,1034,1030,1024,1015,1014,1004,1050,1047,1036,1034,1029,
	1021,1020,1011,1007,1055,1044,1043,1037,1030,1028,1019,1015,1012,1003,1055,1048,
	1041,1039,1029,1024,1019,1011,1009,1003,1055,1053,1044,1039,1036,1025,1023,1017,
	1010,1008,1000,1058,1052,1043,1041,1036,1027,1025,1017,1012,1009,999,1063,1059,
	1050,1048,1041,1035,1033,1023,1020,1014,1004,1004,997,1061,1057,1047,1044,1041,
	1031,1028,1022,1016,1014,1004,1001,998,1064,1063,1055,1047,1046,1037,1031,1027,
	1017,1014,1007,1000,999,989,1067,1061,1053,1051,1044,1035,1034,1024,1019,1017,
	1006,1004,997,992,989,1072,1066,1063,1052,1050,1042,1035,1035,1025,1023,1019,
	1007,1006,1002,991,993,982,1070,1070,1060,1059,1051,1041,1040,1033,1029,1024,
	1014,1012,1006,1000,998,990,986,982,972,1076,1069,1063,1061,1051,1047,1045,
	1034,1031,1022,1018,1019,1006,1003,998,989,984,982,975,973,1083,1078,1074,
	1063,1061,1053,1046,1046,1036,1031,1030,1022,1017,1010,1001,999,992,986,982,
	971,968,963,955,1091,1080,1075,1073,1061,1058,1054,1047,1044,1039,1032,1029,
	1020,1018,1010,1003,1004,992,988,985,973,975,967,960,958,948,947,1094,
	1082,1076,1073,1065,1064,1058,1045,1047,1038,1036,1026,1021,1017,1010,1003,1001,
	990,990,986,978,974,969,965,958,952,951,943,934,934,927,1103,1108,
	1095,1096,1088,1078,1078,1067,1056,1059,1045,1044,1035,1030,1029,1025,1014,1015,
	1006,999,996,983,982,978,968,970,958,955,951,942,942,934,927,929,
	918,911,912,1111,1110,1104,1100,1095,1084,1081,1076,1059,1060,1057,1046,1047,
	1036,1032,1029,1027,1012,1013,1004,1003,993,990,988,976,972,965,964,951,
	951,948,943,936,938,927,918,921,914,902,904,894,894,883,881,880,
	870,1147,1142,1131,1128,1117,1116,1105,1104,1097,1091,1080,1079,1073,1066,1063,
	1053,1052,1049,1037,1036,1023,1022,1018,1000,1006,1003,
	1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,
	1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,
	1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,
	1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,
	1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,
	1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,
	1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,
	1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,
	1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,
	1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,
	1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,
	1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,
	1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,
	1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,
	1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,
	1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,1003,
	};

/* 720p 25 & 30 sht dgain table , default table for 720p mode*/
u32 ov9715_ae_sht_dgain_720p_30[SHUTTER_DGAIN_TABLE_LENGTH] ={
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,
	1024,1024,1016,1014,1014,1006,1005,1047,1038,1038,1035,1027,1027,1024,1057,1058,
	1050,1040,1041,1034,1022,1024,1061,1051,1054,1045,1036,1038,1029,1020,1024,1061,
	1052,1055,1045,1037,1039,1029,1021,1024,1063,1055,1056,1046,1039,1040,1029,1023,
	1024,1067,1062,1062,1053,1048,1047,1038,1034,1033,1024,1076,1073,1062,1058,1055,
	1044,1040,1036,1026,1024,1078,1069,1068,1063,1053,1054,1048,1038,1039,1033,1024,
	1086,1078,1067,1068,1060,1050,1050,1042,1031,1032,1024,1081,1084,1076,1066,1069,
	1062,1052,1055,1048,1038,1040,1033,1024,1101,1092,1081,1081,1075,1064,1062,1056,
	1045,1043,1038,1027,1024,1098,1088,1084,1082,1071,1067,1066,1056,1050,1049,1040,
	1033,1033,1024,1098,1100,1088,1080,1082,1071,1062,1064,1053,1044,1046,1036,1026,
	1022,1024,1107,1096,1100,1090,1081,1084,1074,1066,1067,1057,1051,1051,1040,1037,
	1034,1024,1024,1117,1107,1109,1101,1091,1095,1085,1076,1079,1069,1063,1066,1055,
	1049,1049,1039,1036,1033,1024,1136,1129,1118,1120,1112,1101,1104,1093,1084,1086,
	1076,1068,1069,1058,1052,1052,1041,1037,1034,1024,1147,1140,1130,1132,1124,1113,
	1116,1107,1096,1100,1090,1081,1083,1073,1065,1067,1057,1049,1050,1039,1034,1034,
	1024,1167,1165,1154,1151,1149,1137,1137,1132,1121,1122,1116,1105,1106,1099,1088,
	1090,1083,1071,1074,1066,1055,1058,1050,1040,1043,1033,1024,1194,1184,1173,1177,
	1166,1156,1160,1149,1140,1142,1132,1122,1126,1115,1106,1109,1097,1089,1092,1081,
	1073,1075,1064,1056,1057,1047,1040,1041,1031,1023,1024,1213,1205,1208,1197,1189,
	1192,1182,1172,1176,1166,1156,1160,1151,1140,1143,1135,1124,1127,1120,1109,1109,
	1104,1094,1090,1089,1079,1072,1074,1063,1054,1058,1048,1038,1041,1033,1023,1024,
	1270,1259,1258,1255,1244,1239,1239,1228,1221,1223,1213,1202,1207,1197,1187,1189,
	1182,1172,1170,1167,1156,1150,1152,1141,1138,1133,1122,1124,1116,1105,1108,1099,
	1088,1092,1082,1073,1076,1064,1056,1058,1047,1041,1041,1030,1026,1024,1343,1341,
	1337,1324,1327,1320,1309,1312,1303,1292,1296,1287,1275,1281,1270,1261,1265,1254,
	1245,1249,1237,1230,1232,1220,1215,1215,1206,1200,1200,1189,1185,1183,1173,1171,
	1168,1156,1155,1151,1141,1140,1135,1125,1124,1119,1109,1108,1103,1092,1094,1087,
	1077,1077,1070,1060,1061,1055,1044,1045,1038,1029,1030,1024,1496,1502,1495,1483,
	1486,1478,1467,1470,1463,1451,1453,1448,1437,1438,1434,1422,1422,1417,1404,1405,
	1403,1391,1389,1386,1376,1370,1372,1360,1355,1357,1346,1339,1342,1331,1322,1326,
	1314,1307,1310,1299,1290,1295,1285,1275,1279,1269,1260,1261,1254,1243,1245,1240,
	1230,1226,1225,1215,1208,1212,1200,1192,1196,1186,1177,1179,1173,1163,1161,1158,
	1148,1143,1144,1134,1125,1129,1119,1109,1111,1105,1095,1094,1092,1081,1076,1077,
	1067,1059,1061,1052,1043,1046,1038,1027,1027,1024,1949,1943,1942,1930,1915,1923,
	1909,1895,1902,1885,1871,1876,1866,1847,1852,1842,1825,1821,1819,1807,1798,1802,
	1787,1772,1778,1762,1749,1754,1740,1726,1732,1721,1705,1710,1699,1684,1686,1679,
	1663,1663,1655,1641,1635,1635,1621,1615,1614,1600,1590,1592,1577,1567,1570,1555,
	1542,1546,1536,1519,1523,1511,1499,1502,1490,1478,1477,1467,1455,1454,1447,1433,
	1429,1424,1411,1407,1404,1389,1382,1379,1368,1360,1359,1346,1339,1336,1324,1315,
	1313,1300,1294,1292,1277,1273,1268,1257,1252,1246,1233,1229,1224,1211,1207,1201,
	1187,1185,1179,1164,1164,1156,1144,1143,1132,1121,1123,1112,1097,1098,1089,1076,
	1078,1065,1054,1055,1043,1035,1036,1024,
};

u32 ov9715_ae_sht_dgain_720p_29_97[SHUTTER_DGAIN_TABLE_LENGTH] ={
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,
	1024,1015,1017,1012,1004,1008,1044,1038,1041,1031,1032,1029,1020,1024,1060,1051,
	1053,1042,1036,1034,1024,1024,1063,1052,1055,1046,1038,1040,1030,1026,1024,1060,
	1060,1052,1040,1042,1032,1022,1024,1064,1060,1059,1050,1050,1046,1036,1040,1032,
	1024,1079,1067,1058,1057,1045,1041,1036,1024,1024,1073,1063,1066,1057,1049,1051,
	1041,1035,1036,1026,1024,1079,1068,1067,1061,1049,1051,1042,1031,1034,1024,1076,
	1080,1070,1062,1065,1054,1047,1049,1039,1033,1033,1024,1086,1085,1074,1070,1068,
	1057,1055,1051,1040,1039,1034,1024,1100,1094,1083,1084,1076,1065,1068,1059,1049,
	1051,1042,1031,1034,1024,1093,1095,1084,1077,1076,1066,1060,1059,1048,1044,1041,
	1030,1029,1024,1095,1096,1089,1078,1080,1071,1061,1063,1053,1044,1046,1035,1027,
	1022,1024,1105,1095,1099,1088,1079,1083,1072,1065,1067,1056,1051,1050,1040,1037,
	1034,1025,1024,1119,1108,1110,1102,1091,1094,1084,1074,1077,1066,1058,1059,1049,
	1042,1042,1031,1026,1024,1125,1125,1119,1109,1111,1103,1094,1097,1087,1078,1081,
	1071,1064,1066,1055,1050,1050,1040,1037,1034,1024,1148,1141,1130,1133,1125,1114,
	1117,1107,1097,1100,1090,1082,1084,1073,1067,1067,1057,1052,1051,1040,1038,1034,
	1024,1174,1166,1154,1157,1147,1137,1140,1129,1120,1123,1111,1103,1104,1093,1088,
	1086,1075,1072,1068,1056,1057,1049,1038,1041,1031,1021,1024,1179,1170,1173,1162,
	1155,1156,1145,1142,1140,1129,1128,1123,1112,1114,1106,1095,1100,1090,1081,1084,
	1074,1066,1067,1056,1051,1050,1040,1039,1034,1024,1225,1217,1206,1210,1199,1190,
	1193,1181,1175,1174,1163,1162,1157,1145,1148,1139,1128,1132,1121,1113,1115,1104,
	1099,1096,1085,1086,1078,1067,1070,1060,1051,1053,1042,1037,1035,1024,1024,1271,
	1259,1264,1253,1244,1247,1235,1231,1228,1216,1219,1210,1199,1204,1192,1185,1186,
	1175,1175,1168,1156,1161,1150,1143,1143,1136,1126,1128,1117,1113,1110,1099,1102,
	1093,1084,1086,1075,1071,1067,1056,1058,1049,1041,1043,1031,1028,1024,1341,1346,
	1335,1326,1328,1316,1315,1311,1299,1303,1292,1284,1286,1274,1274,1268,1257,1261,
	1250,1243,1244,1232,1233,1225,1215,1220,1208,1202,1202,1191,1192,1185,1174,1178,
	1168,1161,1161,1150,1150,1143,1132,1136,1126,1119,1119,1108,1108,1101,1090,1093,
	1083,1077,1076,1065,1066,1058,1049,1051,1041,1036,1034,1024,1516,1507,1497,1502,
	1489,1486,1483,1470,1475,1465,1455,1459,1445,1446,1440,1427,1434,1421,1416,1415,
	1403,1406,1397,1386,1390,1378,1376,1371,1360,1365,1354,1346,1347,1334,1335,1328,
	1317,1321,1309,1304,1303,1291,1295,1285,1275,1278,1267,1265,1260,1249,1253,1242,
	1235,1236,1225,1225,1218,1208,1211,1200,1195,1193,1182,1185,1175,1165,1169,1157,
	1156,1150,1139,1143,1133,1125,1126,1115,1115,1108,1097,1101,1091,1084,1083,1073,
	1073,1065,1056,1059,1048,1043,1041,1030,1032,1024,1946,1954,1936,1928,1927,1910,
	1915,1902,1886,1893,1876,1867,1869,1851,1853,1842,1825,1831,1817,1806,1809,1791,
	1790,1784,1768,1772,1759,1744,1750,1735,1725,1725,1711,1710,1702,1685,1691,1678,
	1664,1668,1654,1645,1645,1629,1627,1621,1604,1609,1596,1583,1586,1572,1562,1565,
	1549,1545,1540,1524,1526,1516,1500,1505,1491,1478,1482,1468,1458,1459,1445,1439,
	1436,1421,1420,1412,1397,1400,1389,1375,1378,1366,1353,1355,1341,1332,1333,1318,
	1313,1310,1296,1293,1286,1272,1273,1263,1249,1250,1239,1227,1228,1216,1205,1206,
	1193,1183,1183,1170,1164,1160,1148,1145,1138,1125,1124,1115,1102,1102,1092,1080,
	1081,1069,1058,1059,1046,1038,1036,1024,
};

u8 ov9715_dlight[2] = {128,4};
